Skip to content

Conversation

@pablogsal
Copy link
Owner

No description provided.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

elif (arg & 2) and argrepr:
argrepr = f"{argrepr} + eager"
else:
print(deop)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Debug Print in Opcode Argument Handling

A debug print(deop) statement was accidentally left in the code. It prints to stdout during normal disassembly whenever an opcode's argument processing falls into the general else branch.

Fix in Cursor Fix in Web

if (attr == Py_None) {
attr = NULL;
}
assert(!attr || PyObject_IsTrue(attr));
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Lazy Import Assertion Masks Errors

The assertion !attr || PyObject_IsTrue(attr) in _PyLazyImport_New doesn't correctly handle PyObject_IsTrue() returning -1 on error. Because -1 is truthy in C, the assertion passes, silently masking any exception set by PyObject_IsTrue().

Fix in Cursor Fix in Web

ERROR_IF(res_o == NULL);
//PyStackRef_CLOSE(*res);
*res = PyStackRef_FromPyObjectSteal(res_o);
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Lazy Import Reference Leak

Reference leaks occur in LOAD_NAME and LOAD_GLOBAL instructions when handling lazy import objects. When a lazy import is resolved, its original reference is not properly released before being replaced by the loaded module, leading to a memory leak. The commented-out PyStackRef_CLOSE in LOAD_GLOBAL indicates this missing cleanup.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants